package net.maku.system.facade;

import net.maku.auth.core.user.UserDetail;
import net.maku.system.api.facade.SysMenuFacade;
import net.maku.system.service.SysMenuService;
import org.springframework.stereotype.Component;

import java.util.Set;

@Component
public class SysMenuFacadeImpl implements SysMenuFacade {

    private final SysMenuService sysMenuService;

    public SysMenuFacadeImpl(SysMenuService sysMenuService) {
        this.sysMenuService = sysMenuService;
    }

    @Override
    public Set<String> getUserAuthority(UserDetail userDetail) {
        return sysMenuService.getUserAuthority(userDetail);
    }
}
